/**
 * outsider.com.cn Inc.
 * Copyright (c) 2011-2023 All Rights Reserved.
 */
package com.yuanmeng.common.core.enums;

import lombok.Getter;

/**
 * @author outsider
 * @version Id: MerchantAttributeEnum.java, v 0.1 2023/1/10 16:19 outsider Exp $$
 */
@Getter
public enum MerchantAttributeEnum {
    MALL_MERCHANT("MALL_MERCHANT", "商城商户"),

    COMMUNITY_MERCHANT("COMMUNITY_MERCHANT", "社区商户");

    private String code;

    private String message;

    MerchantAttributeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public static String getMerchantAttributeMessage(String merchantAttribute) {
        for(MerchantAttributeEnum ENUM : MerchantAttributeEnum.values()) {
            if(ENUM.code.equals(merchantAttribute)) {
                return ENUM.message;
            }
        }
        return null;
    }
}